package Java100_1006.operations;

import Java100_1006.Book;
import Java100_1006.BookDao;

import java.util.List;

public class DisplayOperation implements IOperation{
    @Override
    public void work() {
        System.out.println("展示所有书籍！");
        BookDao bookDao = new BookDao();
        List<Book> books = bookDao.selectAll();
        for(Book book:books){
            System.out.println(book);
        }
        System.out.println("展示所有书籍完毕！");
    }
}
